package com.kgcx.common.controller;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import springfox.documentation.annotations.ApiIgnore;

@ApiIgnore
@Controller
@ConditionalOnProperty(prefix = "kgcx.swagger", name = "enable", havingValue = "true")
public class SwaggerController extends BaseController {
    @RequestMapping("/swagger")
    public String swagger() {
        return "redirect:swagger-ui.html.html";
    }
}
